package work1.work2.tv;

public class Hisense extends TV{
    private boolean d3;
    Hisense(){

    }
    void Hisense(String brand,double size,boolean d3){
        this.brand=brand;
        this.size=size;
        this.d3=d3;
    }
    @Override
    void output(){
        if (d3==true){
            System.out.println(brand+" "+size+" "+"是3D电视");
        }
        else{
            super.output();
        }
    }
}
